<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <input type="text">
    <h1>今天星期三</h1>
    <button>
        点我
    </button>
    <script src="jquery.js"></script>
    <script>
        //点击按钮实现操作
        //console.log($('h1'));
        $('button').on('click',function(){
            //和inner.HTML一样的效果
            // $('h1').html('张三疯，一夜疯三次');
            //和inner.Text效果一样
             $('h1').text($('input').val());
            //和inner.value一样的效果
            //$('input').val();
        })
    </script>
</body>
</html>